package org.spring.util;

import cn.com.learningSpring.service.UserService;
import cn.com.learningSpring.service.UserServiceImpl;
import org.junit.Test;

public class TestSpring {

    public static void main(String[] args) {
        BeanFactory beanFactory = new BeanFactory();
        UserService userService = (UserService)beanFactory.getBean("userService");
        userService.num();

        UserService userService1 = (UserService)beanFactory.getBean("userService1");
        userService1.num();
    }
}
